# b=['a','b','c']
# print(b)

# print(b[0].title())

# print(b[-1])

# b[0]='aa'

# b.append('ap')

# b.insert(0,'0')

# print(b)

# # del b[0]

# # p=b.pop()

# # print(p)

# b.remove('aa')

# print(b)


# sort-------

cars=['a','d','c']
# print(cars)

# cars.sort()
# cars.sort(reverse=True)

print(cars)

print(sorted(cars,reverse=True))

print(cars)

cars.reverse()

print(cars)

print(len(cars))

# print(cars[3])

